﻿@using admin.Model
@{
    ViewData["Title"] = "BookShow";
    Layout = "~/Views/Shared/_SmallWinLayout.cshtml";
    var bookShow = Model as AuthorOfBook;
}

<div class="page-container">
    <form action="" method="post" class="form form-horizontal" id="form-article-add">
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>图书名称：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="text" class="input-text" value="@bookShow.book.Name" readonly unselectable="on">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>ISBN号：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="text" class="input-text" value="@bookShow.book.Isbn" readonly unselectable="on">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>图书分类：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="text" class="input-text" value="@bookShow.book.Type" readonly unselectable="on">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>作者信息：</label>
            <div class="formControls col-xs-8 col-sm-9">
                @for (int i = 0; i < bookShow.authors.Count; i++)
                {
                    if (bookShow.authors[i].Name != null)
                    {
                        <input type="text" class="input-text" value="作者@(i+1): @bookShow.authors[i].Name " readonly unselectable="on">

                    }
                    else if (bookShow.authors[i].Name == null)
                    {
                        <input type="text" class="input-text" value="尚未添加作者信息，请在编辑图书信息里添加" readonly unselectable="on">
                    }
                }
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>开本：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="text" value="@bookShow.book.Format" readonly unselectable="on" class="input-text">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>总页数：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="text" value="@bookShow.book.PageCount" readonly unselectable="on" class="input-text">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>总字数：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="text" value="@bookShow.book.WordCount" readonly unselectable="on" class="input-text">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>库存：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="text" value="@bookShow.book.Inventory" readonly unselectable="on" class="input-text">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>总销量：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="text" value="@bookShow.book.Countsale" readonly unselectable="on" class="input-text">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>稿费：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="text" readonly unselectable="on" value="@bookShow.book.Fee" class="input-text" style="width:90%">
                元
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>责任编辑：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="text" readonly="readonly" value="@bookShow.book.Editor" class="input-text" style="width:90%">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>出版日期：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="text" value="@bookShow.book.PublicationDate" readonly="readonly" class="input-text Wdate" style="width:180px;">
            </div>
        </div>

        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>图书简介：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <textarea class="textarea" readonly="readonly" placeholder="" datatype="*10-100" dragonfly="true" onKeyUp="$.Huitextarealength(this,200)">@bookShow.book.Content</textarea>
            </div>
        </div>

        <div class="row cl">
            <div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-2">
                <button onClick="layer_close();" class="btn btn-default radius" type="button">&nbsp;&nbsp;确定&nbsp;&nbsp;</button>
            </div>
        </div>

    </form>
</div>

